import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/Home.vue";
import Login from "../views/Login.vue";
import Res from "../views/Res.vue";
import Addtk from "../views/Addtk.vue";
import Selecttk from "../views/Selecttk.vue";
import Updatetk from "../views/Updatetk.vue";
import Prevtk from "../views/Prevtk.vue";
import Tags from "../views/Tags.vue";

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/login",
    name: "Login",
    component: Login,
  },
  {
    path: "/res",
    name: "Res",
    component: Res,
  },
  {
    path: "/addtk",
    name: "Addtk",
    component: Addtk,
  },
  {
    path: "/selecttk",
    name: "Selecttk",
    component: Selecttk,
  },
  {
    path: "/updatetk",
    name: "Updatetk",
    component: Updatetk,
  },
  {
    path: "/prevtk",
    name: "Prevtk",
    component: Prevtk,
  },
  {
    path: "/tags",
    name: "Tags",
    component: Tags,
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
